import request from "../request.js"
import {MYCOL_URL,GETTOKEN_URL,GETUSERINFO_URL,AUTH_URL} from "../const.js"

export default{
	getCollction(data,token){
		return request({
			url:MYCOL_URL,
			data,
			header:{
				Authorization:token.token
			}
		})
	},
	getToken(data){
		return request({
			url:GETTOKEN_URL,
			method:'post',
			data
		})
	},
	getUserInfo(token){
		return request({
			url:GETUSERINFO_URL,
			data:token,
			header:{
				Authorization:token.token
			}
		})
	}

	
}